import request from "./index";

/**
 *获取签字图片
 * @param {*} params {tenantType, tenantNo}
 * @returns
 */
export function getSealsInfo(params) {
    return request({
        url: `/workflow/getSealsInfo`,
        method: "get",
        params,
        headers: {
            "Content-Type": "application/json;charset=utf-8",
        },
    });
}

/**
 * 签名
 * @param {*} data {certId, signsKid, sealName}
 * @returns 
 */
export function signAutoPdf(data) {
  return request({
      url: `/workflow/signAutoPdf`,
      method: "post",
      data,
      headers: {
          "Content-Type": "application/json;charset=utf-8",
      },
      isJson: true
  });
}
